package cn.panda.edu.service;

import cn.panda.edu.model.Course;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface CourseService {
	/**
	 * 
	* @Title: selectLikeByPrimaryKey 
	* @Description: TODO(模糊查询和分页) 
	* @param @param courseId
	* @param @param courseName
	* @param @param pageIndex
	* @param @param pageSize
	* @param @return  
	* @return List<Course>
	 */
	 PageInfo<Course> selectLikeByPrimaryKey(Integer courseId, String courseName, Integer pageIndex, Integer pageSize);
	 /**
	  *
	 * @Title: deleteByPrimaryKey
	 * @Description: TODO(通过id删除课程)
	 * @param @param courseId
	 * @param @return
	 * @return int
	  */
	 int deleteByPrimaryKey(Integer courseId);
	 /**
		 *
		* @Title: selectLikeByPrimaryKey
		* @Description: TODO(模糊查询和分页)
		* @param @param courseId
		* @param @param courseName
		* @param @param pageIndex
		* @param @param pageSize
		* @param @return
		* @return List<Course>
		 */
		 PageInfo<Course> selectLikeByPrimaryKey(String courseName, Integer pageIndex, Integer pageSize);

	 /**
	  *
	 * @Title: updateByPrimaryKey
	 * @Description: TODO(根据主键更新全部信息)
	 * @param @param record
	 * @param @return
	 * @return int
	  */
	 int updateByPrimaryKeySelective(Course record);
	 /**
	  *
	 * @Title: insert
	 * @Description: TODO( 选择添加课程)
	 * @param @param record
	 * @param @return
	 * @return int
	  */
	 int insertSelective(Course record);
	 /**
	     *
	    * @Title: selectByPrimaryKey
	    * @Description: 根据id查询课程信息
	    * @param courseId
	    * @return
	    * Course
	     */
	    Course selectByPrimaryKey(Integer courseId);
	    /**
	     *
	    * @Title: selectNoticeByPage
	    * @Description: 获取课程所有信息并分页
	    * @param @param pageIndex
	    * @param @param pageSize
	    * @param @return
	    * @return PageInfo<Notice>
	     */
		PageInfo<Course> selectCourseByPage(Integer id, Integer pageIndex, Integer pageSize);

		List<Course> getCourseList();
}
